


add_requires("local_crccpp")

target("ota_upgrade")
    set_kind("binary")
    add_files("chk.cpp")
    add_files("ota.cpp")
    set_languages("c++11")
    add_packages("local_crccpp")
    add_deps("ar8030_client")

    on_install(function (target)
        dhpath = path.join(target:installdir() , "dev_helper")
        os.mkdir(dhpath)

        os.cp(target:targetfile() , dhpath)
    end)